import qrcode

img = qrcode.make("https://blog.csdn.net/2302_76941579/article/details/139499759?spm=1001.2014.3001.5501")
img.save('qrcode.png')
